AnnieRoot.index = AnnieRoot.index || {};
AnnieRoot.index.Index = class extends annie.Sprite {
    constructor() {
        super();
        let s = this;
        /*_a2x_need_start*/
        s.start_btn = null;/*_a2x_need_end*/
        annie.initRes(s, "index", "Index");
        s.start_btn.mouseChildren = false;
        s.alpha = 0;
		s.mouseEnable=false;
        s.addEventListener(annie.Event.ADD_TO_STAGE, function (e) {
            annie.Tween.to(s, 0.2, {
                alpha: 1, onComplete: () => {
					s.mouseEnable=true;
                }
            })
        })
        s.addEventListener(annie.MouseEvent.CLICK, function (e) {
            if (e.target.name == "start_btn") {
                annie.Tween.to(s, 0.2, {
                    alpha: 0, onComplete: () => {
                        annie.globalDispatcher.dispatchEvent("onShowContent", {sceneId: 1});
                    }
                })
            }
        });

    }
};